﻿using System;
using System.Net;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;

namespace CoreDemo
{

    public class Program
    {
        public static void Main(string[] args)
        {
            CreateWebHostBuilder(args).Build().Run();
        }

        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
            .ConfigureAppConfiguration(c =>
            {

            })
            .UseUrls("http://*:8810")
            .UseKestrel(server =>
            {
                server.Listen(IPAddress.Loopback, 5501);
            })
            .UseStartup<Startup>();
    }
}
